import request from '../util/request';

//添加广告请求
export const addAdvRequest = (myForm) => {
  return request.post("/addAdv", myForm)
}
//查询所有的广告
export const advListRequest = () => {
  return request.get("/advList")
}
//删除广告
export const deleteAdvRequest = (_id) => {
  return request.delete("/deleteAdv", {
    params: {
      _id
    }
  })
}